home *** CD-ROM | disk | FTP | other *** search
- Path: news.ios.com!usenet
- From: John Leonard <leonardj@tribeca.ios.com>
- Newsgroups: comp.lang.c++
- Subject: C++ syntax
- Date: Sun, 21 Jan 1996 20:52:26 -0500
- Organization: 12th of Nov, Inc
- Message-ID: <3102EDDA.45A6@tribeca.ios.com>
- NNTP-Posting-Host: ppp-22.ts-9.hck.idt.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b4 (Win95; I)
-
- In the book Borland C++ 4.5 Object-Oriented Programming by Ted Faison, Sam's Publishing, page
- 603, there is an example using the Borland template class library. First, the idea is to instantiate
- a class of type TListImp(from a template) and then instantiate an object of that type. And then to
- instantiate a class of type TListIteratorImp from a template, and then to instantiate an object of
- that type. The TListIterator object will be used to move through the TListImp object. The details
- about these class templates are not what my question is about, but rather the syntax of one of the
- lines in the program is:
- TListIteratorImp<string> next(a); // where a is an object of type TListImp<string>
- ...
- while(next) // ??
- ...
- What does this line mean? How does it work?
-
- John
-